<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改检测机构从业人员')" />
	<th:block th:include="include :: datetimepicker-css" />
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: datetimepicker-js" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tJcJcjgCyry-edit" th:object="${tJcJcjgCyry}">
            <input id="jcjgCyryId" name="jcjgCyryId" th:field="*{jcjgCyryId}"  type="hidden">
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">检测机构id：</label>
				<div class="col-sm-8">
					<input id="jcjgId" name="jcjgId" th:field="*{jcjgId}" class="form-control" type="text">
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">姓名：</label>
						<div class="col-sm-8">
							<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">性别：</label>
						<div class="col-sm-8">
							<label class="col-sm-4 control-label">
								<input type="radio" th:checked="${tJcJcjgCyry.sex=='1'?'':'true'}" value="1" id="men" name="sex" >男 </label>
							<label class="col-sm-4 control-label">
								<input type="radio" th:checked="${tJcJcjgCyry.sex=='0'?'':'false'}" value="0" id="women" name="sex">女 </label>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">身份证号：</label>
						<div class="col-sm-8">
							<input id="identityNumber" name="identityNumber" th:field="*{identityNumber}" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">专业：</label>
						<div class="col-sm-8">
							<input id="profession" name="profession" th:field="*{profession}" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">学历：</label>
						<div class="col-sm-8">
							<input id="education" name="education" th:field="*{education}" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">职称：</label>
						<div class="col-sm-8">
							<input id="jobTilte" name="jobTilte" th:field="*{jobTilte}" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">从事防雷装检测测工作时间：</label>
						<div class="col-sm-8">
							<input id="workTimeStart" name="workTimeStart" th:value="${#dates.format(tJcJcjgCyry.workTimeStart,'yyyy-MM-dd')}" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">是否有能力评价证书：</label>
						<div class="col-sm-8">
							<label class="col-sm-4 control-label">
								<input type="radio" th:checked="${tJcJcjgCyry.evaluationCertificateStatus=='1'?'':'true'}" value="1" id="yes" name="evaluationCertificateStatus" >是 </label>
							<label class="col-sm-4 control-label">
								<input type="radio" th:checked="${tJcJcjgCyry.evaluationCertificateStatus=='0'?'':'false'}" value="0" id="no" name="evaluationCertificateStatus">否 </label>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">能力评价证书编号：</label>
						<div class="col-sm-8">
							<input id="evaluationCertificateCode" name="evaluationCertificateCode" th:field="*{evaluationCertificateCode}" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">发放单位：</label>
						<div class="col-sm-8">
							<input id="lssuingUnit" name="lssuingUnit" th:field="*{lssuingUnit}" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">发放日期：</label>
						<div class="col-sm-8">
							<input id="lssuingDate" name="lssuingDate" th:value="${#dates.format(tJcJcjgCyry.lssuingDate,'yyyy-MM-dd')}" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">有效期起：</label>
						<div class="col-sm-8">
							<input id="validityPeriodStart" name="validityPeriodStart" th:value="${#dates.format(tJcJcjgCyry.validityPeriodStart,'yyyy-MM-dd')}" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">有效期止：</label>
						<div class="col-sm-8">
							<input id="validityPeriodEnd" name="validityPeriodEnd" th:value="${#dates.format(tJcJcjgCyry.validityPeriodEnd,'yyyy-MM-dd')}" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">备注：</label>
						<div class="col-sm-8">
							<input id="remarks" name="remarks" th:field="*{remarks}" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
		</form>
    </div>
	<div class="row">
		<div class="col-sm-offset-5 col-sm-10">
			<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
			<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
		</div>
	</div>
    <script type="text/javascript">
		var prefix = ctx + "system/tJcJcjgCyry";
		$(function() {
			$("#validityPeriodStart").datetimepicker({
				format: "yyyy-mm-dd",
				minView: "month",
				autoclose: true
			});
			$("#validityPeriodEnd").datetimepicker({
				format: "yyyy-mm-dd",
				minView: "month",
				autoclose: true
			});
			$("#lssuingDate").datetimepicker({
				format: "yyyy-mm-dd",
				minView: "month",
				autoclose: true
			});
			$("#workTimeStart").datetimepicker({
				format: "yyyy-mm-dd",
				minView: "month",
				autoclose: true
			});
		});
		$("#form-tJcJcjgCyry-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-tJcJcjgCyry-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
